﻿#ifndef BUTTONGROUP_H
#define BUTTONGROUP_H

#include <QWidget>

namespace Ui {
class ButtonGroup;
}

class ButtonGroup : public QWidget
{
    Q_OBJECT

public:
    enum PanelType{Start,PlayCard,PassOrPlay,CallLord,Empty};
    explicit ButtonGroup(QWidget *parent = nullptr);
    ~ButtonGroup();

    void ButtonInit();
    void selectPanel(PanelType type,int point=0);

private:
    Ui::ButtonGroup *ui;
signals:
    void start();
    void play();
    void pass();
    void betPoint(int point);
};

#endif // BUTTONGROUP_H
